package com.hyhy.hycloud.commons.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author lanpengfei
 * @date 2019-01-12
 */
@AllArgsConstructor
public enum RocketMQDelayLevel {
    /**
     * 1s 5s 10s 30s 1m 2m 3m 4m 5m 6m 7m 8m 9m 10m 15m 20m 30m 60m 90m 120m 150m 3h 4h 8h 
     */
    L0(0, "no delay"),
    L1(1, "1s"),
    L2(2, "5s"),
    L3(3, "10s"),
    L4(4, "30s"),
    L5(5, "1m"),
    L6(6, "2m"),
    L7(7, "3m"),
    L8(8, "4m"),
    L9(9, "5m"),
    L10(10, "6m"),
    L11(11, "7m"),
    L12(12, "8m"),
    L13(13, "9m"),
    L14(14, "10m"),
    L15(15, "15m"),
    L16(16, "20m"),
    L17(17, "30m"),
    L18(18, "60m"),
    L19(19, "90m"),
    L20(20, "120m"),
    L21(21, "150m"),
    L22(22, "3h"),
    L23(23, "4h"),
    L24(24, "8h");

    @Getter
    private Integer value;
    @Getter
    private String description;

}
